package java67_adv3;

import java.util.*;

import review.KindMan;

public class LinkTest {

	public static void main(String[] args) {
		List list = new ArrayList();
//		list.add("dog");
//		list.add("cat");
//		boolean b = list.contains("dog");
//		System.out.println(b);
		list.add(new KindMan("吕洞宾", 3000));
		list.add(new KindMan("雷锋", 32));
		list.add(new KindMan("老李", 29));
		KindMan m = new KindMan("雷锋", 36);
		System.out.println(list.contains(m));// ?
		System.out.println("增强For遍历元素:");
		// list.remove(obj)
		// 遍历
		for (Object o : list) {
			System.out.println(o);
		}
	}

}
